package 设计模式.适配器;

/**
 * 客户端 :
 *  想上网, 插不上网线，使用Adapter(适配器)连接网络
 */
public class ComputerClientTest {

    public void lineNet(Adapter adapter){
        adapter.handleRequest();
    }

    public static void main(String[] args) {
        // 电脑
        ComputerClientTest computerClient = new ComputerClientTest();
        // 转接器
        Adapter adapter = new Adapter();
        computerClient.lineNet(adapter);
    }
}
